$OpenBSD: patch-lib_irrlicht_CMakeLists_txt,v 1.2 2015/04/30 22:29:49 pascal Exp $
--- lib/irrlicht/CMakeLists.txt.orig	Wed Apr  1 03:51:45 2015
+++ lib/irrlicht/CMakeLists.txt	Mon Apr  6 21:41:20 2015
@@ -25,8 +25,8 @@ elseif(MINGW)
   add_definitions(-D_IRR_STATIC_LIB_)
   add_definitions(-D_CRT_SECURE_NO_WARNINGS) # Shut up about unsafe stuff
 else()
-  set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3  -fno-exceptions  -fstrict-aliasing -fexpensive-optimizations -I/usr/X11R6/include")
-  set(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS} -Wall -pipe -O3  -fno-exceptions  -fstrict-aliasing -fexpensive-optimizations -I/usr/X11R6/include")
+  set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -fno-exceptions  -fstrict-aliasing -fexpensive-optimizations -I/usr/X11R6/include")
+  set(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS} -Wall -pipe -fno-exceptions  -fstrict-aliasing -fexpensive-optimizations -I/usr/X11R6/include")
 endif()
 
 # Xrandr
@@ -35,7 +35,7 @@ if(UNIX AND USE_XRANDR)
     add_definitions(-D_IRR_LINUX_X11_RANDR_)
 endif()
 
-if(CYGWIN)
+if(NOT LINUX)
     add_definitions(-DNO_IRR_COMPILE_WITH_JOYSTICK_EVENTS_)
 endif()
 
